﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 装车单
    /// </summary>
    [Table("PB_TransportBill")]
    public partial class PB_TransportBill
    {

        /// <summary>
        /// 自然主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 否已删除
        /// </summary>
        public Boolean Deleted { get; set; }
        /// <summary>
        /// 发货通知ID
        /// </summary>
        public string DeliveryNoticeId { get; set; }


        /// <summary>
        /// 车牌ID
        /// </summary>
        public String Vehicle { get; set; }

        /// <summary>
        /// 派车时间
        /// </summary>
        public DateTime? SendTime { get; set; }

        /// <summary>
        /// 进厂时间
        /// </summary>
        public DateTime? IntoTime { get; set; }

        /// <summary>
        /// 送达要求时间
        /// </summary>
        public DateTime? DeliveryTime { get; set; }

        /// <summary>
        /// 吨数(载重)
        /// </summary>
        //public double? Tunnage { get; set; }
        public double? Tunnage { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public String DocumentMaker { get; set; }

        /// <summary>
        /// 皮重
        /// </summary>
        public Double? EmptyNumber { get; set; }

        /// <summary>
        /// 皮重称重时间
        /// </summary>
        public DateTime? EmptyTime { get; set; }

        /// <summary>
        /// 净重
        /// </summary>
        public Double? NetloadNumber { get; set; }

        /// <summary>
        /// 毛重
        /// </summary>
        public Double? RoughweightNumber { get; set; }

        /// <summary>
        /// 毛重称重时间
        /// </summary>
        public DateTime? RoughweightTime { get; set; }

        /// <summary>
        /// 称重人
        /// </summary>
        public String WeighingPeople { get; set; }

        /// <summary>
        /// 离场时间
        /// </summary>
        public DateTime? DepartureTime { get; set; }

        /// <summary>
        /// 放行状态
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// 司机姓名
        /// </summary>
        public String DriverName { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public String Iphone { get; set; }

        /// <summary>
        /// 车牌号
        /// </summary>
        public String PlateNO { get; set; }
        /// <summary>
        /// 行驶证
        /// </summary>
        public String VehicleLicense { get; set; }

        /// <summary>
        /// 驾驶证
        /// </summary>
        public String DrivingLicense { get; set; }

        /// <summary>
        /// 预估重量
        /// </summary>
        public double? Estimatedweight { get; set; }
        /// <summary>
        /// 进厂操作人
        /// </summary>
        public String EnteringPlantMan { get; set; }

        /// <summary>
        /// 出厂操作人
        /// </summary>
        public String ExFactoryMan { get; set; }

        /// <summary>
        /// 机构
        /// </summary>
        public string DeptId { get; set; }

        /// <summary>
        /// 装车开始时间
        /// </summary>
        public DateTime? LoadingStartTime { get; set; }

        // <summary>
        /// 装车结束时间
        /// </summary>
        public DateTime? LoadingEndTime { get; set; }

        /// <summary>
        /// 车辆类型：0-发货派车；1-回货派车
        /// </summary>
        public string BillType { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public string QrCode { get; set; }

        /// <summary>
        /// 验收备注
        /// </summary>
        public string AcceptanceRemarks { get; set; }
        /// <summary>
        /// 承运商Id
        /// </summary>
        public string CarrierId { get; set; }
        /// <summary>
        /// 车次
        /// </summary>
        public string TrainNumber { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 验收信息(json:验收人和验收时间)
        /// </summary>
        public string Acceptor { get; set; }

        /// <summary>
        /// 收货完成时间
        /// </summary>
        public DateTime? AcceptanceTime { get; set; }
        /// <summary>
        /// 车辆卸车备注说明
        /// </summary>
        public string ReceivingRemarks { get; set; }
        /// <summary>
        /// 装车对比设计清单状态
        /// </summary>
        public Boolean? InventoryErrStatus { get; set; }
        /// <summary>
        /// 装车单对比设计清单备注说明
        /// </summary>
        public string InventoryErrRemarks { get; set; }
        /// <summary>
        /// 装车对比备货状态
        /// </summary>
        public Boolean? StockUpErrStatus { get; set; }
        /// <summary>
        /// 装车对比备货备注
        /// </summary>
        public string StockUpErrRemarks { get; set; }
        /// <summary>
        /// 装车重量闵值状态
        /// </summary>
        public Boolean? WeightErrStatus { get; set; }
        /// <summary>
        /// 装车重量闵值备注描写
        /// </summary>
        public string WeightErrRemarks { get; set; }
        /// <summary>
        /// 回货状态0未回 1已回
        /// </summary>
        public Int32? ReturnStatus { get; set; }
    }
}